package com.neusoft.feign;

import com.neusoft.core.CommonResult;
import com.neusoft.core.Food;
import org.springframework.stereotype.Component;

@Component
public class FoodFeignClientCallBack implements FoodFeignClient{
    @Override
    public CommonResult<Food> getFoodById(Integer foodId) {
        return new CommonResult<>(403, "feign触发了熔断降级", new Food());
    }

    @Override
    public void orderFood(Food food) {
        return;
    }
}
